#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include "smartphone/Smartphone.h"
#include <QTextCodec>
#include <smartphone/Smartphone.h>

#include <QMessageBox>
int main(int argc, char *argv[])
{
    QTextCodec::setCodecForTr(QTextCodec::codecForName("utf-8"));
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf-8"));

    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));

    return a.exec();
}
